package com.accp.service.Impl;

import java.util.List;
import java.util.concurrent.TimeUnit;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import com.accp.dao.GradeDao;
import com.accp.entity.Grade;
import com.accp.service.GradeService;

@Service
public class GradeServiceImpl implements GradeService{

	@Autowired
	GradeDao gradeDao;

	@Override
	public Grade fetchGrade(int id) {	
		return gradeDao.selectById(id);
	}

	@Override
	public List<Grade> getAllGrade() {		
		return gradeDao.selectList(null);
	}
	
}
